<extend name="default/template/base" />
<block name="area_header">
    <link rel="stylesheet" href="__PUBLIC__/Webview/css/signIn.css"/>
</block>
<block name="area_body">
    <div class="wrap">
        <div class="top-content">
            <div class="score">
                <div class="score-content">
                    我的积分:{$score}
                </div>
            </div>
            <div class="date">
                <div class="date-content">
                    <div class="content-wrap">
                        <span class="date-content-number">{$continues_signin|default=0}</span>
                        <span class="date-content-unit">天</span>
                    </div>
                    <div>
                        <span class="date-content-number">{$continues_signin+1}</span>
                        <span class="date-content-unit">天</span>
                    </div>
                </div>
                <eq name="is_sign" value="1">
                    <div class="date-user">
                        {$nickname}已连续签到
                    </div>
                    <else />
                    <a class="btn-signIn" onclick="window.location.href=window.location.href+'&signIn=1';">立即签到</a>
                </eq>

            </div>
        </div>
        <div class="bottom-content">
            <div class="bottom-content-title">
                <div class="bottom-content-title-content">
                    签到赚积分
                </div>
            </div>
            <div class="bottom-content-content">
                <p>1.首次签到可获得5积分</p>
                <p>2.连续签到每一天增加5积分，最高30分</p>
                <p>3.中间断掉从5积分开始</p>
            </div>
        </div>
    </div>
</block>
<block name="area_footer">
    <eq name="signIn" value="1">
        <script>
            $(function(){
                $('.content-wrap').addClass('slide-up');
            });
        </script>
    </eq>
</block>